package com.example.studywords.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;

@Entity(tableName = "word",indices = {@Index(value={"wordId"},unique = true)})
public class WordBean {
    @Ignore
    public WordBean(String wordContent) {
        this.wordContent = wordContent;
    }

    public WordBean() {
    }

    public int getWordId() {
        return wordId;
    }

    public void setWordId(int wordId) {
        this.wordId = wordId;
    }

    public String getWordContent() {
        return wordContent;
    }

    public void setWordContent(String wordContent) {
        this.wordContent = wordContent;
    }

    @PrimaryKey(autoGenerate = true)
    private int wordId;
    private String wordContent;
}
